﻿using Microsoft.Extensions.DependencyInjection;
using MyCommon.Seed;

namespace MyExtension.ServiceExtensions
{
    public static class DbSetup
    {
        public static void AddDbSetup(this IServiceCollection services)
        {
            if (services == null) throw new ArgumentNullException(nameof(services));

            services.AddScoped<MyContext>();
            services.AddScoped<DBSeed>();
        }
    }
}
